<template>
  <svg :class="`XSvgIcon ${className}`" aria-hidden="true">
    <use :xlink:href="`#icon-${iconName}`" />
  </svg>
</template>

<script>
export default {
  name: "XSvgIcon",
  props: {
    iconName: {
      type: String,
      required: true
    },
    className: {
      type: String,
      default: ""
    }
  },
  computed: {}
};
</script>

<style scoped>
.XSvgIcon {
  width: 20px;
  height: 20px;
  vertical-align: -8px;
  overflow: hidden;
}
</style>
